package com.h5ve.toolkit.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.h5ve.data.annotation.Excel;
import com.h5ve.data.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author h5ve
 * @date 2025-03-17 19:22:58
 *
 * @description 触发器对象 Trigger
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dev_trigger")
public class Trigger extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @TableId
    private Integer id;

    /** 所属实体 */
    @Excel(name = "所属实体")
    private Integer entityId;

    @TableField(exist = false)
    private String entityName;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 触发类型 */
    @Excel(name = "触发类型")
    private String actionType;

    /** 触发ID */
    @Excel(name = "触发ID")
    private String actionConfigId;

    /** 动作内容 */
    @Excel(name = "动作内容")
    private String actionContent;

    /** 过滤条件 */
    @Excel(name = "过滤条件")
    private String actionFilter;

    /** cron表达式 */
    @Excel(name = "cron表达式")
    private String cronExp;

    /** 优先级 */
    @Excel(name = "优先级")
    private Integer priority;

    /** 是否禁用 */
    @Excel(name = "是否禁用")
    private String isDisabled;

    /** 异常抛出 */
    @Excel(name = "异常抛出")
    private String isThrow;



}
